<template>
  <div>
    <div style="padding: 50px">
      <ProForm ref="form" :config="setFormConfig"></ProForm>
      <el-button type="primary" @click="onSubmit">主要按钮</el-button>
    </div>
  </div>
</template>

<script setup>
import ProForm from "@/components/ProForm/index.vue";
import { ref } from "vue";
import setFormConfig from "./formConfig";

const form = ref(null);
const onSubmit = (e) => {
  form.value.submit((e) => {
    console.log(e);
  });
};
</script>